package com.ke.searchhouse.repository;

import com.ke.searchhouse.entity.HouseTag;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author  keke
 * @create  2018/10/14 0014 下午 9:34
 * @desc
 **/
public interface HouseTagRepository extends JpaRepository<HouseTag, Long> {
    List<HouseTag> findAllByHouseId(Long id);

    HouseTag findByNameAndHouseId(String tag, Long houseId);

    List<HouseTag> findAllByHouseIdIn(List<Long> houseIds);
}
